define(function(require) {
  var app = angular.module('login', ['ui.router']);

  app.config(function($stateProvider, $urlRouterProvider) {
    $stateProvider.state('register', {
      url : "^/register",
      templateUrl: 'app/register/register.html',
      controller: function(){
        console.info("---------------register controller---------------");
        require("../../register/js/register");
      }
    });
    // $urlRouterProvider.otherwise('login');
  });

  app.controller('loginController', function($scope, $http) {
    console.info("=========login controller===========");
    $scope.person = {
      username: 'firstName',
      password: '123321'
    };
  });
});